]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
extensions-app: Set labelled-by relation for lists
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 12 Dec 2023 16:03:14 +0000 (17:03 +0100)
committerMarge Bot <marge-bot@gnome.org>
Thu, 21 Dec 2023 15:06:11 +0000 (15:06 +0000)
We use our own lists so we can do filtering, but that means we
lose the built-in relation with the group's title.

Set the relation ourselves, so the two lists are described correctly
in screen readers.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3051>

subprojects/extensions-app/data/ui/extensions-window.ui

index 71ed7a404379bf89f5d633995dad46a6643ef305..7047f130c83a65b803d819aa2c2054fe0b846a0d 100644 (file)
                             <child>
                               <object class="GtkListBox" id="userList">
                                 <property name="selection-mode">none</property>
+                                <accessibility>
+                                  <relation name="labelled-by">userGroup</relation>
+                                </accessibility>
                                 <style>
                                   <class name="boxed-list"/>
                                 </style>
                             <child>
                               <object class="GtkListBox" id="systemList">
                                 <property name="selection-mode">none</property>
+                                <accessibility>
+                                  <relation name="labelled-by">systemGroup</relation>
+                                </accessibility>
                                 <style>
                                   <class name="boxed-list"/>
                                 </style>